
<script>
export default {
  name: 'Header',
  props: {
    headerName: {
      type: String,
      default: ''
    }
  },

  render () {
    return (<div class='header'>

      { this.headerName }

      {/* 后置内容插槽 */}
      { this.$slots.end }
    </div>)
  }
}
</script>

<style lang="scss" scoped>
  div.header {
    padding: 15px 20px;
    background: #fff;
    color: #1296DB;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
</style>
